@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
  --header-height: 3.5rem;

  /* colors */
  --title-color: hsl(0, 0%, 100%);
  --text-color: hsl(0, 0%, 60%);
  --body-color: hsl(0, 0%, 0%);

  /* font and typography */
  --body-font: 'Montserrat', 'Poppins';
  --h1-font-size: 1.5rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;

  /* font weight */
  --font-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;

  /* z index */
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 1152px) {
  :root {
    --h1-font-size: 2.25rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
  }
}

/* base css */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  text-transform: uppercase;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* reuseable css classes */
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.main {
  overflow: hidden;
}

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  border-bottom: 1px solid var(--text-color);
  z-index: var(--z-fixed);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  letter-spacing: 3px;
}

.nav-toggle,
.nav-close {
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}

@media screen and (max-width: 1023px) {
  .nav-menu {
    position: fixed;
    top: -100%;
    left: 0;
    background-color: var(--body-color);
    border-bottom: 1px solid var(--text-color);
    width: 100%;
    padding-block: 4.5rem 3.5rem;
    transition: top 0.4s;
  }
}

.nav-list {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  text-align: center;
}

.nav-link {
  color: var(--text-color);
  font-weight: var(--font-semi-bold);
  letter-spacing: 3px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--title-color);
}

.nav-social {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-top: 3rem;
}

.nav-social__link {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: color 0.4s;
}

.nav-social__link:hover {
  color: var(--title-color);
}

.nav-close {
  position: absolute;
  top: 1.15rem;
  right: 1.5rem;
}

.show-menu {
  top: 0;
}

/* home */
.home-container,
.home-data,
.home-content,
.home-images,
.home-info__content {
  display: grid;
}

.home-container {
  padding-block: 9rem 3rem;
  row-gap: 3rem;
}

.home-data {
  text-align: center;
  row-gap: 3.5rem;
}

.home-content {
  row-gap: 0.75rem;
}

.home-stars {
  display: flex;
  column-gap: 0.25rem;
  justify-content: center;
}

.home-stars i {
  color: orange;
}

.home-title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
}

.home-title span {
  background: linear-gradient(to right, orange 20%, rgb(223, 136, 150) 80%);
  color: transparent;
  font-weight: var(--font-bold);
  -webkit-background-clip: text;
  background-clip: text;
}

.home-price {
  font-size: var(--h3-font-size);
}

.home-button {
  border: 1px solid var(--text-color);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  justify-self: center;
  color: var(--title-color);
  font-size: var(--small-font-size);
  letter-spacing: 3px;
  font-weight: var(--font-semi-bold);
  display: inline-flex;
  align-items: center;
  column-gap: 1.5rem;
  transition: border-color 0.4s;
}

.home-button i {
  font-size: 1.25rem;
}

.home-button:hover {
  border-color: var(--title-color);
}

.home-images {
  position: relative;
}

.home-img {
  width: 180px;
  margin-inline: auto;
}

.home-info {
  display: flex;
  align-items: center;
  column-gap: 0.75rem;
  margin-top: 2rem;
}

.home-info__img {
  width: 120px;
}

.home-info__content {
  row-gap: 1.5rem;
}

.home-info__description {
  font-size: var(--small-font-size);
}

.home-button__link {
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  letter-spacing: 3px;
  justify-self: flex-start;
  transition: color 0.4s;
}

.home-button__link:hover {
  color: var(--title-color);
}

/* swiper class */
.swiper {
  margin-inline: initial;
}

.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: -2rem;
}

.swiper-pagination-bullet {
  width: 1rem;
  height: 0.15rem;
  border-radius: 0;
  background-color: var(--text-color);
  opacity: 1;
  transition: background-color 0.3s, width 0.3s;
}

.swiper-pagination-bullet-active {
  width: 1.5rem;
  background-color: var(--title-color);
}

/* scroll bar */
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(0, 0%, 12%);
}
::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 20%);
}
::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 25%);
}

@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  .home-info {
    flex-direction: column;
    row-gap: 2rem;
    text-align: center;
  }

  .home-button__link {
    justify-self: center;
  }
}

@media screen and (min-width: 576px) {
  .home-container {
    grid-template-columns: 400px;
    justify-content: center;
  }
}

@media screen and (min-width: 1024px) {
  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav-close,
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    align-items: center;
    column-gap: 4rem;
  }

  .nav-list {
    flex-direction: row;
    column-gap: 4rem;
  }

  .nav-social {
    margin: 0;
  }

  .home-container {
    height: 100vh;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    column-gap: 4rem;
  }

  .home-data {
    text-align: initial;
  }

  .home-stars {
    justify-content: inherit;
  }

  .home-button {
    justify-self: flex-start;
  }

  .home-info {
    margin: 0;
    flex-direction: column;
    row-gap: 1.25rem;
    align-items: inherit;
  }
}

@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }

  .home-container {
    height: initial;
    grid-template-columns: repeat(3, 320px);
    justify-content: space-between;
    padding-block: 11rem 4rem;
  }

  .home-data {
    row-gap: 9.5rem;
  }

  .home-stars {
    column-gap: 0.75rem;
  }

  .home-img {
    width: 300px;
  }

  .home-info__img {
    width: 150px;
  }

  .home-info__description {
    font-size: var(--normal-font-size);
  }
  
  .home-info__content {
    row-gap: 7.5rem;
  }
}

@media screen and (min-width: 1500px) and (min-height: 1032px) {
  .home-container {
    height: 100vh;
    align-items: center;
  }
}
